<table class="table table-bordered">
    <thead>
        <tr>
            <!-- <th></th> -->
            <th>ID</th>
            <th>管理员</th>
            <th>日志摘要</th>
            <th>登录日期</th>
            <th>IP</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody id="ajaxList">
        {if empty($list)}
            <tr><td colspan="6" style="text-align:center;">暂无数据</td></tr>
        {/if}
        {foreach name="list" item="vo" key="k" }
        <?php
        $content = json_decode($vo['content'],true);
        $content_num = count($content);
        ?>
          <tr role="row">
            <!-- <td><input type="checkbox"></td> -->
            <td>{$vo.id}</td>
            <td>{$vo.user_name}</td>
            <td>
                {volist name="content" id="v" offset="0" length="3"} {$v.alt}{/volist}...({$content_num}条记录)
            </td>
            <td>{$vo.log_time|date="Y-m-d H:i"}</td>
            <td>{$vo.log_ip}</td>
            <td>
              <a class="btn btn-primary" href="javascript:;" onclick="openYemian('/index.php/Admin/System/log_detail/id/{$vo.id}','操作详细')" title="查看详情"><i class="fa fa-eye"></i></a>
              <a class="btn btn-danger" href="javascript:void(0)" data-url="{:url('System/log_del')}" data-id="{$vo.id}" onclick="delRecord(this,'确定删除该记录？此操作不可恢复！',{$vo.id},'/index.php/Admin/System/log_del')"><i class="fa fa-trash-o"></i></a>
            </td>
          </tr>
        {/foreach}
    </tbody>
</table>
<div>
    <div style="float:left;">共{$count}条</div>
    <div style="float:right;">{$page|raw}</div>
</div>
<script>
    // 点击分页触发的事件
    $(".pagination a").click(function(){
        url = $(this).attr('href');
        ajax_get_table('formSearch',url);
        return false;
    });
    // 点击分页触发的事件
    // $(".pagination a").click(function(){
    //     cur_page = $(this).data('p');
    //     ajax_get_table('formSearch',cur_page);
    // });
    $("#page_info").change(function(){
        cur_page = $(this).data('p');
        ajax_get_table('formSearch',cur_page);
    });

    
</script>